package board;

import misc.Vector3i;

public class BoardLocationWithCost {
    protected Vector3i boardLocation;
    protected int cost;
    
    @Deprecated
    protected BoardLocationWithCost() {}
    
    public BoardLocationWithCost(Vector3i boardLocation, int cost) {
        this.boardLocation = boardLocation;
        this.cost = cost;
    }

    public Vector3i getBoardLocation() {
        return boardLocation;
    }

    public void setBoardLocation(Vector3i boardLocation) {
        this.boardLocation = boardLocation;
    }

    public int getCost() {
        return cost;
    }

    public void setCost(int cost) {
        this.cost = cost;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final BoardLocationWithCost other = (BoardLocationWithCost) obj;
        if (this.boardLocation != other.boardLocation && (this.boardLocation == null || !this.boardLocation.equals(other.boardLocation))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 67 * hash + (this.boardLocation != null ? this.boardLocation.hashCode() : 0);
        return hash;
    }
}
